package cn.liontlak.api;

import cn.liontlak.feign.FeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ZhouZhe
 * @version 1.0
 * @description FeignController
 * @date 2018-12-02 13:41
 **/
@RestController
public class FeignController {


    @Autowired
    private FeignService feignService;


    @GetMapping(value = {"/hi","/hello"})
    public String sayHi() {
        return feignService.sayHiFromClient( );
    }

}
